<%-- 
    Document   : add_edituser
    Created on : 22.04.2013, 0:04:30
    Author     : Yasya
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<!DOCTYPE html>


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="css/add_edit_user.css">
         <link rel="stylesheet" type="text/css" href="css/all.css">
        <script src="scripts/jquery-1.8.3.min.js"></script>
        <script type="text/javascript" src="scripts/adminValidator.js"></script>
        <script type="text/javascript" src="scripts/admin.js"></script>
        <title>Add/Edit user</title>

    </head>
    <body>      
        <header>
            <div id ="top_name">   <a href="main.jsp">  <img src="/Delta-war/product/1.jpeg"> </a> <h1><c:out value='${edituser.getLastName()} ${edituser.getFirstName()}'/> </h1> </div>
            
        </header>
        
        <div id="main">
            <div id="label1">
           
          

                <p>First Name:</p>
                <p>Last Name:</p>
                <p>E-mail:</p>
                <p>Address:</p>
               
                             
            </div>
            <div id="correction" Style="margin-top:100px">  
            <form method="Post" action="EditUser" id="editform"> 
                <div style="position: absolute; bottom: -65px; left: 20px;">    
                    <c:if test="${empty edituser}">
                        <c:out value="You shoud send user from admin page"/></c:if></div>
                    <c:set var="roles" scope="page" value="${ediedituser.getRoleCollection()}"/>
                    <c:set var="groups" scope="page" value="${edituser.getGroupsCollection()}"/>
                    <input type="hidden" name="IdUser" value="${edituser.getIdUser()}"/>
                    <p> <input type="text" maxlength="30" name="First_Name" id="First_Name" size="50" value="${edituser.getFirstName()}" oninput="checkInfo()"/><span id="warningFName" style="color: red"></span></p>
                    <p> <input type="text" maxlength="30" name="Last_Name" id="Last_Name" size="50" value="${edituser.getLastName()}" oninput="checkInfo()"/><span id="warningLName" style="color: red"></span></p>
                    <p> <input type="text" maxlength="70" name="E-mail"  id="e-mail" size="50"  value="${edituser.getEMail()}" oninput="checkInfo()"/><span id="warningEmail" style="color: red"></span></p>
                    <p> <input type="text" maxlength="70" name="Address" id="Address" size="50" value="${edituser.getAddress()}" oninput="checkInfo()"/><span id="warningAddress" style="color: red"></span></p>
                   
       
                <div style="color: red; padding: 5px; position: absolute; margin-top: 20px; "S
                     id="warning"><c:out value=""/></div>  
            
                     <div id="line_button"> <button id="ok" type="submit" disabled="true">Ok</button></div>
                <div id="line_button"> <button type="submit" onclick="cancel()" id="func">Cancel</button></div>
                </form>
            </div>
        </div>
                     <div id="footer">
                                <p>  &#169;All rights reserved</p>
                            </div>
    </body>
</html>